package com.changwu.cwbase.bean.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

@Entity
public class User {
    @Id
    public Long id;
    public String uid;
    @Unique
    public String mobile;
    public String password;
    public String name;
    public String remark;
    public String gender;
    public String avatar;
    public String address;
    public String birthday;//用户生日
    public String province;//用户所在地
    public String level;//用户等级昵称
    public String channelId;
    public String gid;
    public String wx;
    public String qq;
    @Transient
    private boolean isTop;//是否是最上面的 不需要被转化成拼音的

    public User() {
    }

    public User(String name) {
        this.name = name;
    }

    @Generated(hash = 1402548079)
    public User(Long id, String uid, String mobile, String password, String name,
                String remark, String gender, String avatar, String address,
                String birthday, String province, String level, String channelId,
                String gid, String wx, String qq) {
        this.id = id;
        this.uid = uid;
        this.mobile = mobile;
        this.password = password;
        this.name = name;
        this.remark = remark;
        this.gender = gender;
        this.avatar = avatar;
        this.address = address;
        this.birthday = birthday;
        this.province = province;
        this.level = level;
        this.channelId = channelId;
        this.gid = gid;
        this.wx = wx;
        this.qq = qq;
    }


    public boolean isTop() {
        return isTop;
    }

    public User setTop(boolean top) {
        isTop = top;
        return this;
    }


    public Long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUid() {
        return this.uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGender() {
        return this.gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirthday() {
        return this.birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getProvince() {
        return this.province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getLevel() {
        return this.level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getChannelId() {
        return this.channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getGid() {
        return this.gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public String getWx() {
        return this.wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public String getQq() {
        return this.qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public boolean getIsTop() {
        return this.isTop;
    }

    public void setIsTop(boolean isTop) {
        this.isTop = isTop;
    }

    public void setId(Long id) {
        this.id = id;
    }
}